package net.oktaeder.office.model;

import java.util.Hashtable;

public class WorkOrder {

	private WorkOrderData.OrderType orderType;
	private Hashtable<String, String> data;
	

	public WorkOrder() {
		data = new Hashtable<String, String>();
	}
	
	public WorkOrderData.OrderType getOrderType() {
		return orderType;
	}

	public void setOrderType(WorkOrderData.OrderType orderType) {
		this.orderType = orderType;
	}
	
	public void addValue(String name, String value) {
		//TODO: implement error handling
		data.put(name, value);
	}
	
	public String getValue(String name) {
		return data.get(name);
	}
}